export const getMsg = (state, text) => {
    state.msg = text;
};

export const checkIsLogin = (state, status) => {
    state.isLogin = status;
};

/**
 * 保存用户新
 * @param  {[type]} state [description]
 * @param  {[type]} data  [description]
 * @return {[type]}       [description]
 */

export const keepUserAuth = (state, data) => {
    state.userAuth = data;
};
export const keepSysUser = (state, data) => {
    state.sysUser = data;
};
export const keepTokenId = (state, data) => {
    state.tokenId = data;
};

export const getRSAPublicKey = (state, key) => {
    state.RSAPublicKey = key;
};

export const getDESPublicKey = (state, key) => {
    state.DESPublicKey = key;
};
